//
//  SIMyDeviceOperationalView.m
//  CampingLight
//
//  Created by Piccolo on 2017/11/9.
//  Copyright © 2017年 SmartIT. All rights reserved.
//

#import "SIMyDeviceOperationalView.h"

@implementation SIMyDeviceOperationalView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    NSArray *objects = [[NSBundle mainBundle] loadNibNamed:@"SIMyDeviceOperationalView" owner:self options:nil];
    self = (SIMyDeviceOperationalView *)[objects objectAtIndex:0];
    self.frame = frame;
    self.backgroundColor = LIGHT_GRAY_COLOR_WITH_ALPHA_5;
    [self addBtnHitArea];
    return self;
}

- (void)addBtnHitArea {
    [_sosBtn setHitTestEdgeInsets:UIEdgeInsetsMake(-15, -15, -15, -15)];
    [_brightBtn setHitTestEdgeInsets:UIEdgeInsetsMake(-15, -15, -15, -15)];
    [_onOffBtn setHitTestEdgeInsets:UIEdgeInsetsMake(-15, -15, -15, -15)];
}
@end
